package com.coffee.job.service.quartz.annotation;

import java.lang.annotation.*;

/**
 * @author Xulg
 * Created in 2019-08-05 17:19
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface JobInfo {

    /**
     * the job name
     *
     * @return the job name
     */
    String name() default "";

    /**
     * the job group
     *
     * @return the job group
     */
    String group() default "";

    /**
     * the job description
     *
     * @return the job description
     */
    String description() default "";

    /**
     * the cron expression
     *
     * @return the cron expression
     */
    String cronExpression() default "";

    /**
     * the cron expression message
     *
     * @return the cron expression message
     */
    String cronExpressionMessage() default "";

    /**
     * job是否启用
     *
     * @return true if the job is enable
     */
    boolean isEnable() default true;
}